<form class="form-horizontal" role="form" method="PUT" id="editUserForm"
	action="/backend/position/${code}">
	<input type="hidden" name="position.code" value="${code}" id="code">
	<div class="form-group">
		<label class="col-sm-3 control-label">编码</label>
		<div class="col-sm-7">
			<p class="form-control-static" v-model="one.code">{{one.code}}</p>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 control-label">职位名称</label>
		<div class="col-sm-7">
			<input type="text" class="form-control"  v-model="one.name"
				name="position.name" placeholder="必填" required>
		</div>
	</div>
	
	<div class="modal-footer">
		<button class="btn btn-success x" style="success" type="submit">确定</button>
		<button class="btn btn-danger x" style="danger" data-dismiss="modal">取消</button>
	</div>
</form>
<script>
var vmEdit=new Vue({
	el:"#editUserForm",
	data:{
		one:{}
	},
	ready:function(){
		this.$http.get('/backend/position/'+$("#code").val()).then(function(resp){
			this.one=resp.data.items[0];
		});
		
		
	}
}) 
	
</script>